package city.spring.domain.entity.mealService;

import city.spring.modules.health.entity.DiseaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * recipes
 *
 * @author yzh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("recipes")
public class RecipesEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String recipesCode;

    /**
     * 食谱名称
     */
    private String recipesName;

    /**
     * 金额
     */
    private String recipesPrize;

    /**
     * 备注
     */
    private String remark;

    /**
     * 详细类别
     */
    private String recipesType;

    @TableField(exist = false)
    private List<RecipesWeekEntity> children;

    @TableField(exist = false)
    private List<FoodInfoEntity> foodInfoEntities;

    @TableField(exist = false)
    private List<MealTimeEntity> mealTime;

    @TableField(exist = false)
    private List<DiseaseEntity> disease;

}
